package primeirosPassosJava.licao2;

public class Exec04 {
	public static void main(String[] args) {
		for (int i = 1; i <= 10; i++) {
			int fatorial = 1; 
			int n = i;
			while (n >= 1) {
				fatorial = fatorial * n;
				n--;
			}
			System.out.println("fatorial de "+i+" = "+fatorial);
		}
	}
}
